﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bai01
{
    public abstract class Vehice
    {
        private String name;
        public Vehice()
        {
        }
        public String go()
        {
            return "";
        }
        public Boolean isEngineOn()
        {
            return false;
        }
        public void startEngine()
        {
        }
        public void stopEngine()
        {
        }
        public String getName()
        {
            return "";
        }
    }
    public interface ICargoTransport
    {
        public void loadCargo()
        {
        }
    }
    public class Car : Vehice
    {
        public Car()
        {
        }
        public String go()
        {
            return "";
        }
    }
    public class Person
    {
        public ArraySegment<Vehice> m_Vehice;
        public Person()
        {
        }
        public void addVehice(Vehice v)
        {
        }
    }
    public class Truck : Vehice, ICargoTransport
    {
        public Truck()
        {
        }
        public override String go()
        {
            return "";
        }
        public void loadCargo()
        {
        }
    }
}
